<form id="frmAddProductMaker" name="frmAddProductMaker" class="add-category round_border">
    <div class="chosen_category">
        Chọn danh mục sản phẩm
    </div>
    <div class="list-item-category">
        <div id="cat_1">
            <select class="w170p" id="selectcat1" size="15" onclick="AdminController.checkExistProductSubCategory('product_maker', this.value, 1);AdminController.showProductMakerForAddMaker(this.value);">
                <?php foreach ($aryCategory as $key => $value) {
                ?>
                    <option value="<?php echo $value['category_id']; ?>">&nbsp;<?php echo $value['category_name']; ?><?php echo ($value['category_total_child'] > 0 ) ? ' >' : ''; ?></option>
                <?php } ?>
            </select>
        </div>
        <div id="cat_2" class="hide">
            <select class="w160p" id="selectcat2" size="15" onclick="AdminController.checkExistProductSubCategory('product_maker', this.value, 2);AdminController.showProductMakerForAddMaker(this.value);">
                
            </select>
        </div>
        <div id="cat_3" class="hide">
            <select class="w160p" id="selectcat3" size="15" onclick="AdminController.checkExistProductSubCategory('product_maker', this.value, 3);AdminController.showProductMakerForAddMaker(this.value);">
                
            </select>
        </div>
        <div id="cat_4" class="hide">
            <select class="w160p" id="selectcat4" size="15" onclick="AdminController.checkExistProductSubCategory('product_maker', this.value, 4);AdminController.showProductMakerForAddMaker(this.value);">
                
            </select>
        </div>
        <div id="cat_5" class="hide">
            <select class="w160p" id="selectcat5" size="15" onclick="AdminController.checkExistProductSubCategory('product_maker', this.value, 5);AdminController.showProductMakerForAddMaker(this.value);">
                
            </select>
        </div>
    </div>
    <div id="list_current_product_maker">

    </div>
    <div id="product_maker_item">
        <div class="list_maker_title">
            Nhập thêm hãng sản xuất nếu không có trong danh sách
        </div>
        <div id="item-0">
            <span>Tên hãng sản xuất</span>
            <span><input type="text" name="product_maker_name[]" class="w150p"></span>
            <span>Ảnh logo</span>
            <span><input type="file" name="image_logo[]" size="30"></span>
            <span><a class="cpointer" onclick="AdminController.addRowItemCategory('product_maker_item', 'product_maker_item_hidden');"><img src="<?php echo $sub_domain;?>/images/form/add-icon.png"></a></span>
            <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'product_maker_item');"><img src="<?php echo $sub_domain;?>/images/form/delete.png"></a></span>
        </div>
    </div>
    <div>
        <input type="button" class="cpointer submit" onclick="AdminController.saveProductMaker('add');" value="Thêm">
    </div>
    <input type="hidden" name="category_id_hidden" id="category_id_hidden">
</form>
<div id="product_maker_item_hidden" style="display: none;">
    <span>Tên hãng sản xuất</span>
    <span><input type="text" name="product_maker_name[]" class="w150p"></span>
    <span>Ảnh logo</span>
    <span><input type="file" name="image_logo[]" size="30"></span>
    <span><a class="cpointer" onclick="AdminController.addRowItemCategory('product_maker_item', 'product_maker_item_hidden');"><img src="<?php echo $sub_domain;?>/images/form/add-icon.png"></a></span>
    <span style="padding-left: 20px;"><a class="cpointer" onclick="AdminController.removeRowItemCategory(this, 'product_maker_item');"><img src="<?php echo $sub_domain;?>/images/form/delete.png"></a></span>
</div>
